/*
 * Copyright：fxsen <br/>
 * Date: 2022/1/19 17:24 <br/>
 * Email:fxsen@foxmail.com
 * Author: fxsen
 */
package com.fxsen.commons.sysmanager.core.service.impl;

import com.fxsen.commons.core.base.common.service.impl.CommonServiceImpl;
import com.fxsen.commons.sysmanager.core.entity.MenuRole;
import com.fxsen.commons.sysmanager.core.mapper.MenuRoleMapper;
import com.fxsen.commons.sysmanager.core.service.IMenuRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @describe: 角色菜单接口服务实现
 * @date: 2022/1/19 17:24
 * @author: fxsen
 */
@Service
public class MenuRoleServiceImpl extends CommonServiceImpl<MenuRoleMapper,MenuRole> implements IMenuRoleService {
    @Autowired
    private MenuRoleMapper mapper;
    @Override
    public List<MenuRole> findByRoleId(String roleId) {
        return mapper.findByRoleId(roleId);
    }

    @Override
    public MenuRole findByRoleIdAndMenuId(String roleId, String menuId) {
        return mapper.findByRoleIdAndMenuId(roleId,menuId);
    }
}
